package com.quan.xczs.rpc.api;

import com.github.pagehelper.PageInfo;
import com.quan.base.common.base.service.support.IService;
import com.quan.base.common.utils.Paginator;
import com.quan.xczs.rpc.model.XczsUser;
import com.quan.xczs.rpc.model.XczsUserInvited;

public interface XczsUserInvitedService extends IService<XczsUserInvited, Integer> {
	
	/**
	 * 根据推荐人openid查询我的被邀请人
	 * @param refereeOpenid
	 * @return
	 */
	public PageInfo<XczsUser> selectInvitedDetailByRefereeOpenid(Paginator paginator, XczsUser entity, String refereeOpenid) ;
	
	/**
	 * 根据推荐人openid查询我的被邀请人（推荐记录）
	 * @param paginator
	 * @param refereeOpenid
	 * @return
	 */
	public PageInfo<XczsUser> selectMyInvitedByRefereeOpenid(Paginator paginator, String refereeOpenid) ;
	
	/**
	 * 统计我的邀请人数量
	 * @param refereeOpenid
	 * @return
	 */
	public int countInvitedByRefereeOpenid(String refereeOpenid) ;
	
	/**
	 * 根据推荐人的openid删除
	 * @param refereeOpenid
	 * @return
	 */
	public int deleteByRefereeOpenid(String refereeOpenid);
	

}
